<%@ page language="java" pageEncoding="utf-8"%>
<%@ page isELIgnored="false" %>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
  <head>
    
    <title>getActivity.jsp</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <div>
    <c:set var="data" value="${requestScope.activity}"></c:set>
    
    <c:out value="${data.title}"></c:out>  发布时间：<fmt:formatDate value="${data.postTime}" pattern="yyyy-MM-dd HH:mm"/>  到期时间：<fmt:formatDate value="${data.deadTime}" pattern="yyyy-MM-dd HH:mm"/>
    <a href="user.do?uid=${data.postUid}"><c:out value="${data.nickName}"></c:out></a>  <img src="${data.mediumImageUrl}">
      <c:choose>
      	<c:when test="${requestScope.isJoin}">
      		<a href="activity.do?method=exit&activityId=${param.activityId}">退出活动</a>
      	</c:when>
      	<c:otherwise>
      		<a href="activity.do?method=join&activityId=${param.activityId}">加入活动</a>
      	</c:otherwise>
      </c:choose>
      
    </div>
    <hr/>
    <c:out value="${data.content}"></c:out>
    <hr/>
    <div>开始时间：<fmt:formatDate value="${data.startTime}" pattern="yyyy-MM-dd HH:mm"/>  结束时间：<fmt:formatDate value="${data.endTime}" pattern="yyyy-MM-dd HH:mm"/>
    联系人方式：<c:out value="${data.contact}"></c:out>
    </div>
    
    <br/><br/><br/><br/>
    这里为评论模块
  </body>
</html:html>
